package com.his.entity;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import java.io.Serializable;
import java.util.Date;

/**
 * (MedicinalCategroy)实体类
 *
 * @author makejava
 * @since 2020-10-23 18:12:56
 */
@Data
public class MedicinalCategroy implements Serializable {
    private static final long serialVersionUID = -84896652602263571L;

    private Integer id;
    /**
     * 类别名称
     */
    @NotBlank
    private String categroyName;
    /**
     * 创建id
     */
    @Pattern(regexp = "^\\d+$", message = "id只能是数字")
    private Integer createId;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 修改id
     */
    @Pattern(regexp = "^\\d+$", message = "id只能是数字")
    private Integer updataId;
    /**
     * 修改时间
     */
    private Date updataTime;
    /**
     * 是否删除
     */
    //@Pattern(regexp = "^[01]$", message = "删除状态码错误")
    private Integer isDelete;

}
